{
 "cells": [
  {
   "cell_type": "code",
   "id": "dfb44ac5-f7f9-4347-a676-87f443f9e0e3",
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-02-26T02:44:00.885976Z",
     "start_time": "2025-02-26T02:44:00.508165Z"
    }
   },
   "source": [
    "import yaml\n",
    "import os \n",
    "\n",
    "with  open('configure.yaml', 'r') as f:\n",
    "    fileText = f.read()\n",
    "    fileData = yaml.load(fileText)\n",
    "    print(fileData)"
   ],
   "outputs": [
    {
     "ename": "TypeError",
     "evalue": "load() missing 1 required positional argument: 'Loader'",
     "output_type": "error",
     "traceback": [
      "\u001B[1;31m---------------------------------------------------------------------------\u001B[0m",
      "\u001B[1;31mTypeError\u001B[0m                                 Traceback (most recent call last)",
      "Cell \u001B[1;32mIn[1], line 6\u001B[0m\n\u001B[0;32m      4\u001B[0m \u001B[38;5;28;01mwith\u001B[39;00m  \u001B[38;5;28mopen\u001B[39m(\u001B[38;5;124m'\u001B[39m\u001B[38;5;124mconfigure.yaml\u001B[39m\u001B[38;5;124m'\u001B[39m, \u001B[38;5;124m'\u001B[39m\u001B[38;5;124mr\u001B[39m\u001B[38;5;124m'\u001B[39m) \u001B[38;5;28;01mas\u001B[39;00m f:\n\u001B[0;32m      5\u001B[0m     fileText \u001B[38;5;241m=\u001B[39m f\u001B[38;5;241m.\u001B[39mread()\n\u001B[1;32m----> 6\u001B[0m     fileData \u001B[38;5;241m=\u001B[39m yaml\u001B[38;5;241m.\u001B[39mload(fileText)\n\u001B[0;32m      7\u001B[0m     \u001B[38;5;28mprint\u001B[39m(fileData)\n",
      "\u001B[1;31mTypeError\u001B[0m: load() missing 1 required positional argument: 'Loader'"
     ]
    }
   ],
   "execution_count": 1
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ba738e1e-369c-4977-974d-51386ede02ef",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.21"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
